<?php
require_once 'protected/web/front/app/FrontController.php';
class MemberController extends Controller{
	var $user;
	var $site_info;
	public function MemberController(){
		parent::Controller();
		$this->user = get_session('user');
		$this->module = 'member';

		global $site_info;
		$this->site_info = $site_info;
		
		//总是允许的请求（不需要登录）
		$allow_app_acts = array(
			'user' => array('user_info'),
		);
		if(empty($this->user) || $this->user['authority']!==true){
			if(!isset($allow_app_acts[APP][ACT])){
				$this->redirect('/login.html?return_url=' . REDIRECT_URL);
			}
		}
	}
}

?>